// component/nav_one/nav_one.js
Component({

  // 组件的属性列表
  properties: {
    res: {
      type: Object,
      value: [],
    },
    channelName:{
      type:String,
      value: "专栏"
    }
  },
  methods:{
    "showmore":function () {
      const myEventDetail = {} // detail对象，提供给事件监听函数

      this.triggerEvent("showmore", myEventDetail)
      //第一个参数，就是给这个事件起个名字，要在组件的bind后面用，第二个参数是传入数据，还有第三个参数冒泡啥的
    },
    "goZlDetail":function(e){
      var id = e.currentTarget.dataset.id;
      this.triggerEvent('goZlDetail', { id: id });
    }
  },
  /**
   * 页面的初始数据
   */
  data: {

  },
  options:{
    addGlobalClass: true
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})

/**
 * 测试数据：
 * {
      "typesetting":1,
      "title":"\u8bfe\u7a0b\u63a8\u8350",
      "type":0,
      "icon":"",
      "image":"",
      "grade_id":1,
      "show_count":10,
      "sum_count":2,
      "list":[
        {
          "id":114,
          "pink_money":"9.90",
          "is_pink":0,
          "sort":0,
          "title":"\u96f6\u57fa\u7840\u5165\u95e8\u7528\u4e13\u4e1a\u8f6f\u4ef6\u642d\u5efa\u4efb\u52a1\u7ba1\u7406\u7cfb\u7edf \u77e5\u8bc6\u4ed8\u8d39\u7cfb\u7edf",
          "image":"http:\/\/cremb-zsff.oss-cn-beijing.aliyuncs.com\/b3c1520210205143915824.jpg?x-oss-process=image\/resize,m_lfit,h_254,w_690",
          "abstract":"\u901a\u8fc7\u76f4\u64ad\u3001\u5728\u7ebf\u4ed8\u8d39\u89c6\u9891\u3001\u97f3\u9891\u3001\u56fe\u6587\u7b49\u591a\u79cd\u5185\u5bb9\u5f62\u5f0f\uff0c\u7ed3\u5408\u5206\u9500\u63a8\u5e7f\u3001\u8bfe\u7a0b\u4e13\u9898\u3001\u8bfe\u7a0b\u63a8\u8350\u3001\u62fc\u56e2\u7b49\u65b9\u5f0f\u52a9\u529b\u5185\u5bb9\u8425\u9500\uff0c\u5feb\u901f\u5b9e\u73b0\u5185\u5bb9\u53d8\u73b0",
          "label":[
            "\u4e13\u680f"
          ],
          "money":"32.00",
          "pay_type":1,
          "special_type":5,
          "subject_name":"\u5927\u5b66\u8bed\u6587",
          "link_id":114,
          "add_time":1618913400,
          "view_count":3090,
          "member_pay_type":1,
          "member_money":"3.00",
          "count":0,
          "special_type_name":"\u4e13\u680f"
        },
        {
          "id":126,
          "pink_money":"88.00",
          "is_pink":0,
          "sort":0,
          "title":"\u6258\u798f\u8003\u524d\u51b2\u523a\u73ed\u540d\u5e08\u8bb2\u89e3\u5341\u5929\u5b8c\u6210\u81ea\u6211\u7a81\u7834",
          "image":"http:\/\/cremb-zsff.oss-cn-beijing.aliyuncs.com\/966de202102051439159849.jpg?x-oss-process=image\/resize,m_lfit,h_254,w_690",
          "abstract":"\u5feb\u901f\u63d0\u5206\u3001\u89e3\u9898\u601d\u8def",
          "label":[
            "\u65e5\u8bed"
          ],
          "money":"99.00",
          "pay_type":1,
          "special_type":5,
          "subject_name":"\u9ad8\u4e2d\u6570\u5b66",
          "link_id":126,
          "add_time":1618913394,
          "view_count":930,
          "member_pay_type":0,
          "member_money":"0.00",
          "count":0,
          "special_type_name":"\u4e13\u680f"
        }
      ],
      "data":[

      ],
      "ceilCount":0,
      "courseIndex":1
    }
 **/